package com.zhx.basis.设计模式.抽象工厂.demo1;

public class Main {

    public static void main(String[] args)  throws Exception {
        ICacheService proxy_EGM = JDKProxy.getProxy(CacheServiceImpl.class, new EGMCacheAdapter());
        proxy_EGM.set("user_name_01","zhx");
        String val01 = proxy_EGM.get("user_name_01");
        System.out.println(val01);

        ICacheService proxy_IIR = JDKProxy.getProxy(CacheServiceImpl.class, new IIRCacheAdapter());
        proxy_IIR.set("user_name_01","zhx");
        String val02 = proxy_IIR.get("user_name_01");
        System.out.println(val02);
    }
}
